package com.aspose.cells;

class zbgc extends zck {
   zbgc(zn var1, float var2, float var3, zbkr var4) {
      super(var1, var2, var3, var4);
   }

   void b() {
      float var1 = this.g;
      float var2 = this.h;
      float var3 = this.e.v().h();
      float var4 = this.e.v().i();
      float var5 = 0.0F;
      if (this.e.m != null) {
         if (this.e.m.a.size() > 0) {
            var5 = com.aspose.cells.b.a.ze.a(this.e.m.a.get(0)) / 100000.0F;
         } else {
            var5 = 0.17F;
         }
      } else {
         var5 = 0.17F;
      }

      com.aspose.cells.b.a.b.zq var6 = new com.aspose.cells.b.a.b.zq(var1, var2, var3, var4);
      com.aspose.cells.b.a.b.zm var7 = zbum.a(this.e.x());
      float var8 = var5 * (var3 > var4 ? var4 : var3);
      com.aspose.cells.b.a.b.a.zf var9 = this.a.e();
      this.a.a(4);
      com.aspose.cells.b.a.b.zo[] var16 = new com.aspose.cells.b.a.b.zo[5];
      com.aspose.cells.b.a.b.zo[] var17 = new com.aspose.cells.b.a.b.zo[3];
      com.aspose.cells.b.a.b.zo var10;
      com.aspose.cells.b.a.b.zo var11;
      com.aspose.cells.b.a.b.zo var12;
      com.aspose.cells.b.a.b.zo var13;
      com.aspose.cells.b.a.b.zo var14;
      com.aspose.cells.b.a.b.zo var15;
      switch(this.e.b) {
      case 1:
         var10 = new com.aspose.cells.b.a.b.zo(var1, var2);
         var11 = new com.aspose.cells.b.a.b.zo(var1 + var3, var2);
         var12 = new com.aspose.cells.b.a.b.zo(var1 + var3, var2 + var4 - var8);
         var13 = new com.aspose.cells.b.a.b.zo(var1 + var3 - var8, var2 + var4);
         var14 = new com.aspose.cells.b.a.b.zo(var1, var2 + var4);
         var15 = new com.aspose.cells.b.a.b.zo(var1 + var3 - 0.8F * var8, var2 + var4 - 0.8F * var8);
         var16[0] = var10;
         var16[1] = var11;
         var16[2] = var12;
         var16[3] = var13;
         var16[4] = var14;
         var17[0] = var12;
         var17[1] = var13;
         var17[2] = var15;
         break;
      case 2:
         var10 = new com.aspose.cells.b.a.b.zo(var1, var2);
         var11 = new com.aspose.cells.b.a.b.zo(var1 + var3 - var8, var2);
         var12 = new com.aspose.cells.b.a.b.zo(var1 + var3, var2 + var8);
         var13 = new com.aspose.cells.b.a.b.zo(var1 + var3, var2 + var4);
         var14 = new com.aspose.cells.b.a.b.zo(var1, var2 + var4);
         var15 = new com.aspose.cells.b.a.b.zo(var1 + var3 - 0.8F * var8, var2 + 0.8F * var8);
         var16[0] = var10;
         var16[1] = var11;
         var16[2] = var12;
         var16[3] = var13;
         var16[4] = var14;
         var17[0] = var11;
         var17[1] = var12;
         var17[2] = var15;
         break;
      case 3:
         var10 = new com.aspose.cells.b.a.b.zo(var1 + var8, var2);
         var11 = new com.aspose.cells.b.a.b.zo(var1 + var3, var2);
         var12 = new com.aspose.cells.b.a.b.zo(var1 + var3, var2 + var4);
         var13 = new com.aspose.cells.b.a.b.zo(var1, var2 + var4);
         var14 = new com.aspose.cells.b.a.b.zo(var1, var2 + var8);
         var15 = new com.aspose.cells.b.a.b.zo(var1 + 0.8F * var8, var2 + 0.8F * var8);
         var16[0] = var10;
         var16[1] = var11;
         var16[2] = var12;
         var16[3] = var13;
         var16[4] = var14;
         var17[0] = var10;
         var17[1] = var14;
         var17[2] = var15;
         break;
      case 4:
         var10 = new com.aspose.cells.b.a.b.zo(var1, var2);
         var11 = new com.aspose.cells.b.a.b.zo(var1 + var3, var2);
         var12 = new com.aspose.cells.b.a.b.zo(var1 + var3, var2 + var4);
         var13 = new com.aspose.cells.b.a.b.zo(var1 + var8, var2 + var4);
         var14 = new com.aspose.cells.b.a.b.zo(var1, var2 + var4 - var8);
         var15 = new com.aspose.cells.b.a.b.zo(var1 + 0.8F * var8, var2 + var4 - 0.8F * var8);
         var16[0] = var10;
         var16[1] = var11;
         var16[2] = var12;
         var16[3] = var13;
         var16[4] = var14;
         var17[0] = var13;
         var17[1] = var14;
         var17[2] = var15;
      }

      if (!this.e.w().a()) {
         com.aspose.cells.b.a.b.a.ze var18 = new com.aspose.cells.b.a.b.a.ze();
         var18.b(var6);
         com.aspose.cells.b.a.b.zc var19 = zbum.a(this.e.w(), var18);
         this.a.a(var19, var16);
         this.a.a(var19, var17);
      }

      if (!this.e.x().a()) {
         this.a.c(var7, var16);
         this.a.c(var7, var17);
      }

      super.a();
      this.a.a(var9);
   }
}
